using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using DAOLayer;
using DTOLayer;

namespace BUSLayer
{
    public class LoaiTheDocGiaBUS : AbstractBus
    {
        public int TextExisted(LoaiTheDocGiaDTO dto)
        {
            LoaiTheDocGiaDAO dao = new LoaiTheDocGiaDAO();
            return dao.TestExisted(dto);
        }
        public int InsertLoaiTheDocGia(LoaiTheDocGiaDTO dto)
        {
            LoaiTheDocGiaDAO dao = new LoaiTheDocGiaDAO();
            return dao.InsertLoaiTheDocGia(dto);
        }
        public int DeleteLoaiTheDocGia(int maloaithe)
        {
            LoaiTheDocGiaDAO dao = new LoaiTheDocGiaDAO();
            return dao.DeleteLoaiTheDocGia(maloaithe);
        }
        public int UpdateLoaiTheDocGia(LoaiTheDocGiaDTO dto)
        {
            LoaiTheDocGiaDAO dao = new LoaiTheDocGiaDAO();
            return dao.UpdateLoaiTheDocGia(dto);
        }
        public DataTable LayBang()
        {
            LoaiTheDocGiaDAO dao = new LoaiTheDocGiaDAO();
            return dao.LayBang();
        }
    }
}
